<div class="SipeiInfo border_3 pb20 centered back_bgf">
   <?php
   $form = $this->beginWidget('CActiveForm', array(
   'action' => Yii::app()->createUrl($this->route),
   'method' => 'POST',
   'id' => 'searchForm'));
	?>
    <table class="fontc_666 height32">
      <tbody>
        <tr>
          <td width="125" align="right" class="pt20 pr5">规则代码：</td>
          <td width="370" class="pt20"><input type="text"  name="info[code]" value="<?php echo $data['code']; ?>" class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
        <tr>
          <td align="right" class="pt20 pr5">规则名称：</td>
          <td class="pt20"><input type="text" name="info[name]" value="<?php echo $data['name']; ?>"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
        <tr>
          <td align="right" class="pt20 pr5">对应数据表名称：</td>
          <td class="pt20">
          <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3"> 
					<span class="fl select_shelter"> 
					<select name="info[tablename]" class="fl fontc_666">
					<?php $tableinfo = ZTask::_gettable();foreach ($tableinfo as $b=>$t):?>
                    	<option value="<?php echo $b;?>" <?php if ($data['tablename'] =='student'){echo "selected='selected'";}?>><?php echo $t;?></option>
                   	<?php endforeach;?>
					</select> 
					</span> 
				</span>
          <!--<input type="text" name="info[tablename]" value="<?php echo $data['tablename']; ?>"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" />--></td>
        </tr>
        <tr>
          <td align="right" class="pt20 pr5">导入方式：</td>
          <td class="pt20">
          	<span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3"> 
					<span class="fl select_shelter"> 
					<select name="info[mode]" class="fl fontc_666">
						<option value="0"  <?php if ($data['mode'] =='0'){echo "selected='selected'";}?>>新增</option>
						<option value="1"  <?php if ($data['mode'] =='1'){echo "selected='selected'";}?>>更新</option>
					</select> 
					</span> 
			</span>
         <!-- <input type="text" name="info[mode]" value="<?php echo $data['mode']; ?>"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" />-->
          
         
          </td>
        </tr>
        <tr>
          <td align="right" class="pt20 pr5">excel读取起始行数：</td>
          <td class="pt20"><input type="text" name="info[row]" value="<?php echo $data['row']; ?>"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
        <tr>
          <td align="right" class="pt20 pr5">excel标识列：</td>
          <td class="pt20"><input type="text" name="info[show]" value="<?php echo $data['show']; ?>"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
        <tr>
          <td align="right" class="pt20 pr5">数据表标识列：</td>
          <td class="pt20"><input type="text" name="info[tablerow]" value="<?php echo $data['tablerow']; ?>"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
        <tr>
          <td align="right" class="pt20 pr5">Excel模板：</td>
          <td class="pt20"><input type="text" name="info[stencil]" value="<?php echo $data['stencil']; ?>"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
        <tr>
          <td align="right" class="pt20 pr5">是否生效：</td>
          <td class="pt20"><input type="checkbox" name="info[status]" value='1' <?php if(!empty($data['status'])): ?>checked<?php endif; ?>  /></td>
        </tr>
        <tr>
          <td align="right" valign="top" class="pt20 pr5">备注：</td>
          <td class="pt20"><textarea class="col3 pt6 pr10 pb6 pl10 border_c border_3 fontc_666" name="info[remark]" ><?php echo $data['remark']; ?></textarea></td>
        </tr>
        <tr>
          <td align="right" class="pt20 pr5 pb20"></td>
		  <input type="hidden" name="info[id]" value="<?php echo $data['id']; ?>">
          <td class="pt20 pb20"><input type="button" value="取消"  onclick="api.close()" class="b_a_n border_3 back_bgb w80 height32 fontc_FFF fonts_12 mr10" /><input type="submit" value="保存" name="submit" class="b_a_n border_3 back_bgfb w80 height32 fontc_FFF fonts_12" /></td>
        </tr>
      </tbody>
    </table>
	  <?php
	  $this->endWidget();
	?>
</div>
<?php exit; ?>